package com.kun.common.exception;

import lombok.Getter;
import lombok.Setter;

/**
 * @author Fangkun
 * @email 1219731039@qq.com
 * @date 2022-01-15 13:48:30
 */
@Getter
@Setter
public class NoStockException extends RuntimeException {
    private Long skuId;

    public NoStockException(Long skuId) {
        super("商品id："+ skuId + "库存不足！");
    }

    public NoStockException(String msg) {
        super(msg);
    }


}
